<script type="text/javascript" src="__PUBLIC__/js/userAutoTips.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/emotions.js"></script>
<style type="text/css" >
	
	/*样式格式化*/
	body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, button, textarea, p, blockquote, th, td { margin: 0; padding: 0; }
	fieldset, img { border: 0; }
	img { display:inline-block; }
	:focus { outline: 0; }
	address, caption, cite, code, dfn, em, strong, th, var, optgroup { font-style: normal; font-weight: normal; }
	h1, h2, h3, h4, h5, h6 { font-size: 100%; font-weight: normal; }
	abbr, acronym { border: 0; font-variant: normal; }
	input, button, textarea, select, optgroup, option { font-family: inherit; font-size: inherit; font-style: inherit; font-weight: inherit; }
	code, kbd, samp, tt { font-size:100%; }
	input, button, textarea, select { *font-size: 100%;
	}
	ol, ul { list-style: none outside none; }
	table { border-collapse: collapse; border-spacing: 0; }
	caption, th { text-align: left; }
	sup, sub { font-size: 100%; vertical-align: baseline; }
	:link, :visited, ins { text-decoration: none; }
	blockquote, q { quotes: none; }
	blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
	a{+A:expression(this.onFocus=this.blur());}	
	a:focus{outline:none;}
	body{font-size:75%; font-family:Tahoma, Arial;}



	/*
	 * user auto tips css
	 */
	.recipients-tips{ font-family:Tahoma, Arial;position:absolute; background:#f7f7f2; z-index:2147483647; padding:2px; border:1px solid #6b9228; display:none;}
	.recipients-tips li a{display:block; padding:2px 5px; color:#333; cursor:pointer; font-family:Tahoma, Arial;}
	.recipients-tips li a em{font-weight:700; color:#000; font-family:Tahoma, Arial;}
	.autoSelected{background:#b8c796; font-family:Tahoma, Arial;}
	
	/*****/
	.textarea{ width:300px; height:50px; padding:3px; font-family:Tahoma, Arial;}
</style>
<div>
<div>
		<textarea id='<?php echo ($id_prefix); ?><?php echo ($id); ?>' name=<?php echo ($name); ?> cols=<?php echo ($cols); ?> wrap="virtual" class=<?php echo ($class); ?> onfocus='<?php echo ($onfocus); ?>' onclick=<?php echo ($onclick); ?>><?php echo ($defaultContent); ?></textarea>
		
</div>
	
<div id="<?php echo ($id_prefix); ?><?php echo ($id); ?>_toolbar" style="display:none;top: 2px;left: 0px;">
	
	<img src="__PUBLIC__/images/buttons/emotion.gif" title="表情" onclick="showEmotionBtns('<?php echo ($id_prefix); ?>','<?php echo ($id); ?>');" onmouseover="changeBtnImg(this,'__PUBLIC__/images/buttons/emotionFocused.gif');" onmouseout="changeBtnImg(this,'__PUBLIC__/images/buttons/emotion.gif');"></img>
	
	<span id="<?php echo ($id_prefix); ?><?php echo ($id); ?>_chars-remain"><?php echo ($max_chars); ?></span>
</div>
<div class="phiz_box">
 <div class="phiz" style="display:none;top: 2px;left: 0px;" id="<?php echo ($id_prefix); ?><?php echo ($id); ?>_smilelist">
                                    <?php if(is_array($bq_emotion)): ?><?php $k = 0;?><?php $__LIST__ = $bq_emotion?><?php if( count($__LIST__)==0 ) : echo "" ; ?><?php else: ?><?php foreach($__LIST__ as $key=>$bq): ?><?php ++$k;?><?php $mod = ($k % 2 )?><div class="ico_link hand">
                                          <img src="__PUBLIC__/images/biaoqing/<?php echo ($site_opts["ico_type"]); ?>/<?php echo ($bq["filename"]); ?>" emotion="<?php echo ($bq["emotion"]); ?>" title="<?php echo ($bq["title"]); ?>" onclick="insertBQ(this,<?php echo ($k-1); ?>,'<?php echo ($id); ?>','<?php echo ($id_prefix); ?>');"/>                                    
										</div><?php endforeach; ?><?php endif; ?><?php else: echo "" ;?><?php endif; ?>
 </div>   
</div>
</div>
<script type="text/javascript">
	//alert("hell");
	max_chars=<?php echo ($max_chars); ?>;
	//alert("<?php echo ($id); ?>");
	id_prefix="<?php echo ($id_prefix); ?>";
	id="<?php echo ($id); ?>";
	userAutoTips({id_prefix:id_prefix,id:id,url:'/thinksns1.6/apps/event/index.php?s=/User/searchTips'});

</script>